package com.ly.erms.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 文件主表
 * @author liuyang
 * @date 2018年1月15日
 */
@TableName("publiclibrary_datarecord")
public class PubliclibraryDatarecord extends Model<PubliclibraryDatarecord>{

	private static final long serialVersionUID = 2221168013987833413L;


    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 文件名称
     */
	private String filename;
    /**
     * 签出者id
     */
	private Integer checkoutperid;
    /**
     * 文件类型
     */
	private Integer filetype;
    /**
     * 处置方案id
     */
	private Integer dispostoalid;
    /**
     * 保管时间
     */
	private Integer forkeep;
    /**
     * 文件状态
     */
	private Integer state;
	/**
	 * 作者id
	 */
	private Integer authorid;
	/**
     * 作者
     */
	private String author;
    /**
     * 签出时间
     */
	private Date checkoutpertime;
    /**
     * 捕获方式
     */
	private String captureway;
    /**
     * 上级节点id
     */
	private Integer pid;
    /**
     * 上级节点类型
     */
	private Integer ptype;
    /**
     * 过期时间
     */
	private Date overtime;
    /**
     * 文件hashcode值
     */
	private String hashcode;
    /**
     * 文件路径
     */
	private String docpath;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public Integer getCheckoutperid() {
		return checkoutperid;
	}

	public void setCheckoutperid(Integer checkoutperid) {
		this.checkoutperid = checkoutperid;
	}

	public Integer getFiletype() {
		return filetype;
	}

	public void setFiletype(Integer filetype) {
		this.filetype = filetype;
	}

	public Integer getDispostoalid() {
		return dispostoalid;
	}

	public void setDispostoalid(Integer dispostoalid) {
		this.dispostoalid = dispostoalid;
	}

	public Integer getForkeep() {
		return forkeep;
	}

	public void setForkeep(Integer forkeep) {
		this.forkeep = forkeep;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getCheckoutpertime() {
		return checkoutpertime;
	}

	public void setCheckoutpertime(Date checkoutpertime) {
		this.checkoutpertime = checkoutpertime;
	}

	public String getCaptureway() {
		return captureway;
	}

	public void setCaptureway(String captureway) {
		this.captureway = captureway;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getPtype() {
		return ptype;
	}

	public void setPtype(Integer ptype) {
		this.ptype = ptype;
	}

	public Date getOvertime() {
		return overtime;
	}

	public void setOvertime(Date overtime) {
		this.overtime = overtime;
	}

	public String getHashcode() {
		return hashcode;
	}

	public void setHashcode(String hashcode) {
		this.hashcode = hashcode;
	}

	public Integer getAuthorid() {
		return authorid;
	}

	public void setAuthorid(Integer authorid) {
		this.authorid = authorid;
	}

	public String getDocpath() {
		return docpath;
	}

	public void setDocpath(String docpath) {
		this.docpath = docpath;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PubliclibraryDatarecord{" +
			"id=" + id +
			", createtime=" + createtime +
			", filename=" + filename +
			", checkoutperid=" + checkoutperid +
			", filetype=" + filetype +
			", dispostoalid=" + dispostoalid +
			", forkeep=" + forkeep +
			", state=" + state +
			", author=" + author +
			", checkoutpertime=" + checkoutpertime +
			", captureway=" + captureway +
			", pid=" + pid +
			", ptype=" + ptype +
			", overtime=" + overtime +
			", hashcode=" + hashcode +
			", docpath=" + docpath +
			"}";
	}

}
